/**
 *
 * @version 1.0
 * @Author ady
 * @Date 2021/8/10 12:38
 */
import axios from './axios'
//设备保养记录列表
export function getMachmaintainList(params) {
    const url = '/ms/api/v1/mach/maintain/list'
    return axios.get(url, params)
}
//设备保养记录详情
export function getMachmaintainDetail(params) {
    const url = '/ms/api/v1/mach/maintain/detail'
    return axios.get(url, params)
}
//增加设备保养记录
export function getMachmaintainAdd(params) {
    const url = '/ms/api/v1/mach/maintain/add'
    return axios.post(url, params)
}
//编辑设备保养记录
export function getMachmaintainEdit(params) {
    const url = '/ms/api/v1/mach/maintain/edit'
    return axios.post(url, params)
}
//删除设备保养记录
export function getMachmaintainDel(params) {
    const url = '/ms/api/v1/mach/maintain/del/'
    return axios.post(url + params)
}
//导出设备保养记录
export function getMachmaintainExp(params) {
    const url = '/ms/api/v1/mach/maintain/export'
    return axios.post(url, params)
}
//上传保养文件
export function getMachmaintainUpload(params) {
    const url = '/ms/api/v1/mach/maintain/upload'
    return axios.get(url, params)
}
//设备保养报表列表（按月）
export function getMachmaintainReportByMonth(params) {
    const url = '/ms/api/v1/mach/maintain/reportByMonth'
    return axios.get(url, params)
}
//设备保养费用统计（按年月）
export function getMachmaintainPayState(params) {
    const url = '/ms/api/v1/mach/maintain/maintainPayStat'
    return axios.get(url, params)
}
//设备保养报表列表（按年）
export function getMachmaintainReportByYear(params) {
    const url = '/ms/api/v1/mach/maintain/reportByYear'
    return axios.get(url, params)
}
//导出设备保养报表
export function getMachmaintainReportEXP(params) {
    const url = '/ms/api/v1/mach/maintain/report/export'
    return axios.post(url, params)
}

//系统设置
//列表（分页）
export function getMachDictDateList(params) {
    const url = '/ms/api/v1/mach/dict/data/anon/list'
    return axios.get(url, params)
}
//添加
export function getMachDictDateAdd(params) {
    const url = '/ms/api/v1/mach/dict/data/add'
    return axios.post(url, params)
}
//编辑
export function getMachDictDateEdit(params) {
    const url = '/ms/api/v1/mach/dict/data/edit'
    return axios.post(url, params)
}
//删除
export function getMachDictDateDel(params) {
    const url = '/ms/api/v1/mach/dict/data/del/'
    return axios.post(url + params)
}
//查询单台设备保养记录
export function getMachmaintainListByMachID(params) {
    const url = '/ms/api/v1/mach/maintain/listByMachId'
    return axios.get(url, params)
}
//获取oss大文件上传参数
export function getMachmaintainFileCheck(params) {
    const url = '/ms/api/v1/mach/maintain/file/anon/getConfig'
    return axios.get(url, params)
}
//保养设备列表
export function getDevicemaintainList(params) {
    const url = 'ms/api/v1/mach/maintain/getAvailableMach'
    return axios.get(url, params)
}